package cn.enilu.flash.bean.entity.transport;

import cn.enilu.flash.bean.entity.BaseEntity;
import cn.enilu.flash.bean.entity.message.MessageSender;
import cn.enilu.flash.bean.entity.shop.AttrVal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.annotations.Table;

import javax.persistence.*;
import java.util.List;


@Data
@Table(appliesTo = "t_user_address",comment = "用户地址表")
@Entity(name="t_user_address")
public class UserAddress extends BaseEntity {

    private Long mapPointId;

    private String contactName;

    private String contactPhone;

    private String addressDetail;

    private Integer orderBy;

    @JoinColumn(name = "mapPointId",insertable = false,updatable = false)
    @OneToOne(targetEntity=MapPoint.class,cascade=CascadeType.DETACH)
    private MapPoint point;


}
